<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta HTTP-equiv="pragma" content="no-cache">
	<meta HTTP-equiv="Cache-Control" content="no-store, must-revalidate">
	<meta HTTP-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT">
	<meta HTTP-equiv="expires" content="0">
	<title>Iam JSSDK for Example</title>
	<!-- https://cdn.bootcss.com/font-awesome/5.7.2/css/all.min.css -->
<!-- @Authors: <Wanglsir@gmail.com, 983708408@qq.com> -->
<!-- [Use for production] -->
	<link rel="stylesheet" href="../iam-jssdk/assets/css/IAM.all.min.css"/>
	<script type="text/javascript" src="../iam-jssdk/assets/js/jquery-3.5.1.min.js" path="../"></script>
	<script type="text/javascript" src="../iam-jssdk/assets/js/IAM.all.min.js" path="../"></script>
<!-- [Use for debugging] -->
<!-- 	<link rel="stylesheet" href="../iam-jssdk/src/css/iam-jssdk-wx.css"/> -->
<!-- 	<link rel="stylesheet" href="../iam-jssdk/src/css/iam-jssdk-captcha-jigsaw.css"/> -->
<!-- 	<link rel="stylesheet" href="../iam-jssdk/src/css/iam-jssdk-ui.css"/> -->
<!-- 	<script type="text/javascript" src="../iam-jssdk/src/js/jquery-3.5.1.js"></script> -->
<!-- 	<script type="text/javascript" src="../iam-jssdk/src/js/fingerprint2-2.1.0.js"></script> -->
<!-- 	<script type="text/javascript" src="../iam-jssdk/src/js/crypto-js-4.0.0.js"></script> -->
<!-- 	<script type="text/javascript" src="../iam-jssdk/src/js/common-util-2.0.0.js"></script> -->
<!-- 	<script type="text/javascript" src="../iam-jssdk/src/js/iam-jssdk-crypto.js"></script> -->
<!-- 	<script type="text/javascript" src="../iam-jssdk/src/js/iam-jssdk-fingerprint.js"></script> -->
<!-- 	<script type="text/javascript" src="../iam-jssdk/src/js/iam-jssdk-captcha-jigsaw.js"></script> -->
<!-- 	<script type="text/javascript" src="../iam-jssdk/src/js/iam-jssdk-core.js"></script> -->
<!-- 	<script type="text/javascript" src="../iam-jssdk/src/js/iam-jssdk-ui.js"></script> -->
	<script type="text/javascript">
		var homeUrl = "/iam-server/view/index.html";
		var options = {
			deploy: {
				// If it is null, it will be automatically parsed from location by default.				
				//baseUri: "http://localhost:14040/iam-server/",
				//defaultTwoDomain: "iam",
				//defaultContextPath: "/iam-server"
			}
		};
		// Auto redirection to index. (Optional)
		new IAMCore(options).checkAuthenticationAndRedirect(homeUrl).then(() => {
			$(function() {
				console.log("IAM JSSDK UI creation... ");
				new IAMUi().initUI(document.getElementById("iam_container"), options);
			});
		});
	</script>
</head>
<body>
	<div id="iam_container" style="width:380px;margin:auto"></div>
</body>
</html>
